package io;

import java.io.DataOutputStream;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class TestOutput {

	public static void main(String[] args) throws Exception {
		OutputStream out = null;
		double d=2345.12345;
		out = new FileOutputStream("john.data");
		
		DataOutputStream dout=new DataOutputStream(out);
		//out.write(97);
//		byte[] buf= {97,98,99};
//		out.write(buf, 0, 3);
		dout.writeDouble(d);
		out.close();

	}

}
